home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / radians.h < prev    next >
C/C++ Source or Header  |  1992-02-25  |  779b  |  24 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Pat Hanrahan, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. #ifndef RADIANSDEF
  13. #define RADIANSDEF
  14.  
  15. /* From Knuth: vol I */
  16. #ifndef PI
  17. #define  PI 3.1415926535897932384626433832795028841972
  18. #endif
  19.  
  20. #define RADIANS(angle) ((PI/180.0)*(angle))
  21. #define DEGREES(angle) ((180.0/PI)*(angle))
  22.  
  23. #endif
  24.